<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul>
        <li onclick="look(event)">dfsfgd</li>
        <li>dfgs</li>
        <li></li>
        <li></li>
        <li></li>
    </ul>
    <div>哈哈哈哈哈</div>
    <script>
        function look(e){
            console.log(e);
            console.log(this);
            
            
        }
        let div  = document.querySelector('div')
        div.onclick = function(e){
            console.log(e);
            console.log(this);
            
            
        }
    </script>
</body>
</html>